package com.itheima.d1_staticdemo;

public class User {
    static int num;

    public static int getNum() {
        return num;
    }

    public static void setNum(int num) {
        User.num = num;
    }

    public User() {
        num ++;
    }

    public User(int num) {
        User.num++;
    }
}
